<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<jsp:include page="template-head.jsp" />
<jsp:include page="template-body.jsp" />
<div class="container">
<div id="deleteuserpage">
	<div id="deleteuserpagebody">
	<div class="hero-unit">
		<form id="deleteuserform" method="post" action="deleteuser.do">
			<div>
			<table>
			<c:forEach var="user" items="${userlist}">
				<tr>
					<c:if test="${user.type == 3}">
					<td><a href="deleteuser.do?value=${user.userid}&button=viewrespondent">${user.userid}</a></td>
					<td><input type="hidden" name="deleteuserid" value="${user.userid}"/></td>
					<td><input type="submit" name="button" class="btn btn-primary" value="Delete"></input></td>					
					</c:if>
					<c:if test="${user.type == 2}">
					<td><a href="deleteuser.do?value=${user.userid}&button=viewresearcher">${user.userid}</a></td>
					<td><input type="hidden" name="deleteuserid" value="${user.userid}"/></td>
					<td><input type="submit" name="button" class="btn btn-primary" value="Delete"></input></td>
					</c:if>
 				</tr>
			</c:forEach>
			</table>
			 </div>
			<div id="deleteuserbackbutton">
				<input type="submit" name="button" class="btn btn-inverse"  value="Back"/>
			</div>
		</form>
	</div>
	</div>
</div>
</div>
<!--Create another space for contents' extension  -->
	<div class="container2">
	
	
 	</div>
<jsp:include page="template-foot.jsp" /> 